package com.example.rwq_test.stateMonitor;

/**
 * @Description 状态监控枚举
 *
 * @Author renweiqiang
 * @Date 2024/4/23 下午6:09
 */
public enum StateMonitorEnum {
    /**
     * 业务状态
     */
    BUSINESS_STATE(2, 3000),
    /**
     * 任务结束
     */
    TASK_FINISH(1, 3000),
    /**
     * 车辆状态
     */
    VEHICLE_STATE(1, 5000);

    /**
     * 期望值 在实际中直接用枚举,这里先简单写下
     */
    private final Integer expectValue;
    /**
     * 监控时间/ms
     */
    private final Integer monitorTime;

    StateMonitorEnum(Integer expectValue, Integer monitorTime) {
        this.expectValue = expectValue;
        this.monitorTime = monitorTime;
    }

    public Integer getExpectValue() {
        return expectValue;
    }

    public Integer getMonitorTime() {
        return monitorTime;
    }
}
